package com.lagou.entity;

/**
 * 学生实体类
 */
public class Student {
    private int id;
    private String username;
    private String password;
    private String sex;
    private String birthday;
    private int age;
    private Clazz clazz;
    private int cid;
    private String  cname;

    public Student(String username, String password, String sex, String birthday, int age, String cname) {
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.birthday = birthday;
        this.age = age;
        this.cname = cname;
    }

    public Student(String username, String password, String sex, String birthday, int age, int cid, String cname) {
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.birthday = birthday;
        this.age = age;
        this.cid = cid;
        this.cname = cname;
    }

    public Student(String username, String password, String sex, String birthday, Integer age, Integer cid, String cname) {
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.birthday = birthday;
        this.age = age;
        this.cid = cid;
        this.cname = cname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Student(String username, String password, String sex, String birthday, int age, Clazz clazz, int cid) {
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.birthday = birthday;
        this.age = age;
        this.clazz = clazz;
        this.cid = cid;
    }

    public Student(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public Student(String username, String password, String sex, String birthday, int age) {
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.birthday = birthday;
        this.age = age;
    }

   /* public Student(String username, String password, String sex, String birthday, int age, Clazz clazz) {
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.birthday = birthday;
        this.age = age;

    }*/

    public Student(String username, String password, String sex, String birthday, Integer age, int id, String cname) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Clazz getClazz() {
        return clazz;
    }

    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }

    @Override
    public String toString() {
        return "Student{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday='" + birthday + '\'' +
                ", age=" + age +
                ", clazz=" + clazz +
                '}';
    }
}
